package com.ruoyi.employer.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货物信息对象 cargo_goods
 * 
 * @author zhk
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CargoGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 品名 */
    @Excel(name = "品名")
    private String name;

    /** 货物包装方式ID */
    @Excel(name = "货物包装方式ID")
    private Long packageMethodId;

    @Excel(name = "货物包装方式")
    private CargoWrap cargoWrap;

    /** 货物类型ID */
    @Excel(name = "货物类型ID")
    private Long typeId;

    @Excel(name = "货物类型")
    private CargoGoodstype cargoGoodstype;

    /** 重量（吨） */
    @Excel(name = "重量", readConverterExp = "吨=")
    private Double weight;

    /** 体积（方） */
    @Excel(name = "体积", readConverterExp = "方=")
    private Double volume;

    /** 逻辑删除标志，0表示未删除，1表示已删除 */
    @Excel(name = "逻辑删除标志", readConverterExp = "0=表示未删除，1表示已删除")
    @TableLogic(value = "0", delval = "1")
    private String del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPackageMethodId(Long packageMethodId) 
    {
        this.packageMethodId = packageMethodId;
    }

    public Long getPackageMethodId() 
    {
        return packageMethodId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setWeight(Double weight) 
    {
        this.weight = weight;
    }

    public Double getWeight() 
    {
        return weight;
    }
    public void setVolume(Double volume) 
    {
        this.volume = volume;
    }

    public Double getVolume() 
    {
        return volume;
    }
    public void setDel(String del) 
    {
        this.del = del;
    }

    public String getDel() 
    {
        return del;
    }

    public CargoWrap getCargoWrap() {
        return cargoWrap;
    }

    public void setCargoWrap(CargoWrap cargoWrap) {
        this.cargoWrap = cargoWrap;
    }

    public CargoGoodstype getCargoGoodstype() {
        return cargoGoodstype;
    }

    public void setCargoGoodstype(CargoGoodstype cargoGoodstype) {
        this.cargoGoodstype = cargoGoodstype;
    }

    @Override
    public String toString() {
        return "CargoGoods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", packageMethodId=" + packageMethodId +
                ", cargoWrap=" + cargoWrap +
                ", typeId=" + typeId +
                ", cargoGoodstype=" + cargoGoodstype +
                ", weight=" + weight +
                ", volume=" + volume +
                ", del='" + del + '\'' +
                '}';
    }
}
